﻿# Add the lines below to all incarnations of powershell.exe.configs (ise, x64, x86, etc)
# <?xml version="1.0"?>
# <configuration>
#    <startup useLegacyV2RuntimeActivationPolicy="true">
#        <supportedRuntime version="v4.0.30319"/>
#        <supportedRuntime version="v2.0.50727"/>
#    </startup>
# </configuration> 
[Reflection.Assembly]::LoadFile($(gci "TfsRollUp.Client.dll").FullName)
$client = new-object TfsRollUp.Client.ManagerClient
try
{
	$client.EnableRollUpProcessing($false)
}
catch[System.Exception]
{
	Write-Error $_
	Write-Host "The TfsRollUpService may not be activated by Tfs yet"
	Write-Host "Please try to modify a workitem and try again"
}
